package com.ruoyi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.domain.JkFllowupMessage;
import com.ruoyi.mapper.JkFllowupMessageMapper;
import com.ruoyi.service.IJkFllowupMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 消息管理Service业务层处理
 *
 * @author ruoyi
 * @date 2023-09-12
 */
@Service
public class JkFllowupMessageServiceImpl extends ServiceImpl<JkFllowupMessageMapper,JkFllowupMessage> implements IJkFllowupMessageService
{
    @Autowired
    private JkFllowupMessageMapper jkFllowupMessageMapper;

    /**
     * 查询消息管理
     *
     * @param id 消息管理主键
     * @return 消息管理
     */
    @Override
    public JkFllowupMessage selectJkFllowupMessageById(Long id)
    {
        return jkFllowupMessageMapper.selectJkFllowupMessageById(id);
    }

    /**
     * 查询消息管理列表
     *
     * @param jkFllowupMessage 消息管理
     * @return 消息管理
     */
    @Override
    public List<JkFllowupMessage> selectJkFllowupMessageList(JkFllowupMessage jkFllowupMessage)
    {
        return jkFllowupMessageMapper.selectJkFllowupMessageList(jkFllowupMessage);
    }

    /**
     * 新增消息管理
     *
     * @param jkFllowupMessage 消息管理
     * @return 结果
     */
    @Override
    public int insertJkFllowupMessage(JkFllowupMessage jkFllowupMessage)
    {
        jkFllowupMessage.setCreateTime(DateUtils.getNowDate());
        return jkFllowupMessageMapper.insertJkFllowupMessage(jkFllowupMessage);
    }

    /**
     * 修改消息管理
     *
     * @param jkFllowupMessage 消息管理
     * @return 结果
     */
    @Override
    public int updateJkFllowupMessage(JkFllowupMessage jkFllowupMessage)
    {
        return jkFllowupMessageMapper.updateJkFllowupMessage(jkFllowupMessage);
    }

    /**
     * 批量删除消息管理
     *
     * @param ids 需要删除的消息管理主键
     * @return 结果
     */
    @Override
    public int deleteJkFllowupMessageByIds(Long[] ids)
    {
        return jkFllowupMessageMapper.deleteJkFllowupMessageByIds(ids);
    }

    /**
     * 删除消息管理信息
     *
     * @param id 消息管理主键
     * @return 结果
     */
    @Override
    public int deleteJkFllowupMessageById(Long id)
    {
        return jkFllowupMessageMapper.deleteJkFllowupMessageById(id);
    }

}
